
public class Dice {

	int diceNumber1; 
	int diceNumber2;
	
	public void throwDice(){
		do {
			diceNumber1 = (int) (Math.random () * 6)+ 1;
			diceNumber2 = (int) (Math.random () * 6)+ 1;
			System.out.println(diceNumber1);
			System.out.println(diceNumber2);
			
		}while(diceNumber1==diceNumber2);
	} 
}
